
// lib
// config
// script & methods & public
// state
// http
// service
import {
  // simpleBooleanService,
  // simpleListService,
  simpleObjectService,
  simplePageService,
  simpleResService,
} from "public/service/simple.service";
import { API_CANCEL_ILLEGAL, API_ILLEGAL_PAGE, API_PAY_ILLEGAL, ReqIllegalPage } from "./api";
// api
// interface
// 其它

// 借还管理-借阅分页列表
export async function getIllegalPageService(params: ReqIllegalPage) {
  return simplePageService<ReqIllegalPage, IllegalDto>(
    API_ILLEGAL_PAGE ,
    params,
  );
}

// 借还管理-新增借阅
export async function payIllegalService(params: ReqIllegalPage) {
  return simpleResService<ReqIllegalPage>(API_PAY_ILLEGAL, params);
}

// 借还管理-取消预约
export async function cancelIllegalService(params: ReqIllegalPage) {
  return simpleResService<ReqIllegalPage>(API_CANCEL_ILLEGAL, params);
}



